<?php
/**
 * CreateTime: 2023/2/24 15:13
 */

namespace App\Models\MeLawCase;

use App\Consts\TableConsts\TableConsts;
use App\Func\StaffFunc;
use App\Models\BaseModelV2;

class MeLawCaseBoardModel extends BaseModelV2
{
    protected $table = TableConsts::ME_BOARD;

    protected $primaryKey = 'law_case_board_id';


    protected $fillable = [
        'law_case_board_id',
        'board_content',
        'owner_id',
        'created_time',
        'updated_time',
    ];


    public function getOwnerStrAttribute($value){
        $all = StaffFunc::getStaffAllBySelect();
        return StaffFunc::getStaffNameByStaffId($all,$value);
    }





}